<script setup>
const asyncFunc = () => {
    return new Promise((resolve, reject) => {
        setTimeout(() => {
            resolve("hello world")
        }, 2000)
    })
}

const param = await asyncFunc()
</script>

<template>
    <h2>{{ param }}</h2>
</template>
